using System;

namespace Common
{
	/// <summary>
	/// 日志管理
	/// </summary>
	public class Logger
	{
		public enum LogLevel : byte
		{
			DEBUG,
			INFO,
			LOG,
			WARN,
			ERROR,
			DEFAULT = DEBUG,
		}


		public static void log(String message,LogLevel logLevel = LogLevel.DEFAULT)
		{
			log (message, null, logLevel);
		}


		public static void log(String message,Object[] args,LogLevel logLevel = LogLevel.DEFAULT)
		{
			if (logLevel >= DevSetting.level) {
				message = String.Format (message, args);
				Console.WriteLine (message);
			}

		}


		private Logger ()
		{

		}
	}
}

